php limit string length

55

php limit string length -

if (strlen($str) > 10)
   $str = substr($str, 0, 7) . '...';

Comments

Submit
0 Comments